//
//  LTView.m
//  UI3_LTView
//
//  Created by dllo on 15/12/16.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import "LTView.h"

@implementation LTView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self createlTView];
        
    }
    return self;
}





- (void)createlTView {
    self.myLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 50)];
    _myLabel.backgroundColor = [UIColor clearColor];
    _myLabel.textAlignment = NSTextAlignmentCenter;
    _myLabel.font = [UIFont systemFontOfSize:20];
    
    //添加到LTView 上
    [self addSubview:_myLabel];
    [_myLabel release];
    
    self.myTextField = [[UITextField alloc] initWithFrame:CGRectMake(100, 0, 200, 50)];
    _myTextField.backgroundColor = [UIColor clearColor];
    _myTextField.layer.borderWidth = 2;
    _myTextField.layer.borderColor = [UIColor lightGrayColor].CGColor;
    _myTextField.layer.cornerRadius = 10;
    _myTextField.clearButtonMode = UITextFieldViewModeAlways;
    _myTextField.clearsOnBeginEditing = YES;
    _myTextField.font = [UIFont systemFontOfSize:20];
    [self addSubview:_myTextField];
    [_myTextField release];

}


@end
